home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
wtj009.zip
/
TOOLBAR.ZIP
/
SAMPLE.TB
< prev
next >
Wrap
Text File
|
1992-04-30
|
2KB
|
49 lines
TOOLBAR "sampletoolbar" # names created resource (one word)
# blank lines (above) are OK as are lines begining w/tabs & '#' char
ORIENT VERTICAL # must be VERTICAL or HORIZONTAL
CELLSIZE 32, 32 # size of cell (1x1 bitmap) as X, Y
MASTERCELLS 2, 2 # number of master cells as X, Y
SLAVECELLS 2, 2 # number of slave cells as X, Y
# SLAVECELLS line may be ommited if no slave
# tools are used (i.e. no MASTERTOOLs)
# note that the MASTER/SLAVECELLS line creates only the space reserved for the
# tools, as per it uses the Levaro design. Tools may be multiple cells wide
# or tall (see examples) but must include the space between tools (i.e. a
# 1x2 cell bitmap should be 32x65 pixels, a 2x3 should be 65x98 pixels.
BEGIN # required to begin toolbar
TOOLSET 1 # beginning of toolset 1
BEGIN
TOOL "bitmapname", 101 # non-hierarchical tool, uses
# "bitmapname" as bitmap and returns
# notification code 101 when pressed
MASTERTOOL "bitmap" # hierarchical tool, uses "bitmap"
# as bitmap, returns no notification
# instead diplays slave tools:
BEGIN # begin this tools slaves
TOOL "bitmap", 201 # first slave (only non-hierarchy)
TOOL "bitmap", 202 # second slave
TOOL "bitmap", 203 # third slave
TOOL "bitmap", 204 # last slave, if any of the prev.
# slaves were, say, a 2x1 size tool
# the fourth tool could be ommited
# if included, it is ignored.
END # end of master tool
MASTERTOOL "desert" # next master tool (hierarchical)
BEGIN
TOOL "coyote", 301 # it's slave tools
TOOL "cactus", 302
TOOL "canteen", 303
TOOL "footprints", 304
END
TOOL "toolbox", 102 # last two master tools
TOOL "arrows", 103 # (non-hierarchical)
# note that above line generates error as it's the fifth
# master tool in a 2x2 cell space
END # end toolset # end first toolset
# TOOLSET 2 could begin here, but only one in this sample
END # so end toolbar signifying only one toolset